package com.wcs.exam.dao.impl.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 标签使用记录
 * </p>
 *
 * @author wcs
 * @since 2025-03-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("tag_record")
public class TagRecord implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 标签类型(参考枚举)
     */
    private Integer tagType;

    /**
     * 标签ID
     */
    private Long tagId;

    /**
     * 资源ID
     */
    private Long resourceId;

    /**
     * 创建人ID
     */
    private Long creatorId;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;
}
